home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší České Hry / Nej české hry.iso / hry / vesmirna becherovka / 2004 Vesmírná Becherovka / Becherovka.exe / scripts / DefineSprite_2965 / frame_2 / DoAction.as
Encoding:
Text File  |  2004-09-30  |  3.1 KB  |  121 lines

  1. if(this.hitTest(_root.s.pohyb.s1.sf1))
  2. {
  3.    _root.s.pohyb.s1.SF1.gotoAndPlay("explode");
  4.    gotoAndPlay(4);
  5. }
  6. if(this.hitTest(_root.s.pohyb.s1.sf2))
  7. {
  8.    _root.s.pohyb.s1.SF2.gotoAndPlay("explode");
  9.    gotoAndPlay(4);
  10. }
  11. if(this.hitTest(_root.s.pohyb.s1.sf3))
  12. {
  13.    _root.s.pohyb.s1.SF3.gotoAndPlay("explode");
  14.    gotoAndPlay(4);
  15. }
  16. if(this.hitTest(_root.s.pohyb.s2.sf1))
  17. {
  18.    _root.s.pohyb.s2.SF1.gotoAndPlay("explode");
  19.    gotoAndPlay(4);
  20. }
  21. if(this.hitTest(_root.s.pohyb.s2.sf2))
  22. {
  23.    _root.s.pohyb.s2.SF2.gotoAndPlay("explode");
  24.    gotoAndPlay(4);
  25. }
  26. if(this.hitTest(_root.s.pohyb.s2.sf3))
  27. {
  28.    _root.s.pohyb.s2.SF3.gotoAndPlay("explode");
  29.    gotoAndPlay(4);
  30. }
  31. if(this.hitTest(_root.s.pohyb.s3.sf1))
  32. {
  33.    _root.s.pohyb.s3.SF1.gotoAndPlay("explode");
  34.    gotoAndPlay(4);
  35. }
  36. if(this.hitTest(_root.s.pohyb.s3.sf2))
  37. {
  38.    _root.s.pohyb.s3.SF2.gotoAndPlay("explode");
  39.    gotoAndPlay(4);
  40. }
  41. if(this.hitTest(_root.s.pohyb.s3.sf3))
  42. {
  43.    _root.s.pohyb.s3.SF3.gotoAndPlay("explode");
  44.    gotoAndPlay(4);
  45. }
  46. hit = false;
  47. if(this.hitTest(_root.s.pohyb.laser1.n1._x,_root.s.pohyb.laser1.n1._y,true))
  48. {
  49.    hit = true;
  50.    _root.s.pohyb.laser1.sNum -= 1;
  51.    _root.s.pohyb.laser1.n1.num = 0;
  52.    _root.s.pohyb.laser1.n1._x = -500;
  53. }
  54. if(this.hitTest(_root.s.pohyb.laser1.n2._x,_root.s.pohyb.laser1.n2._y,true))
  55. {
  56.    hit = true;
  57.    _root.s.pohyb.laser1.sNum -= 1;
  58.    _root.s.pohyb.laser1.n2.num = 0;
  59.    _root.s.pohyb.laser1.n2._x = -500;
  60. }
  61. if(this.hitTest(_root.s.pohyb.laser1.n3._x,_root.s.pohyb.laser1.n3._y,true))
  62. {
  63.    hit = true;
  64.    _root.s.pohyb.laser1.sNum -= 1;
  65.    _root.s.pohyb.laser1.n3.num = 0;
  66.    _root.s.pohyb.laser1.n3._x = -500;
  67. }
  68. if(this.hitTest(_root.s.pohyb.laser1.n4._x,_root.s.pohyb.laser1.n4._y,true))
  69. {
  70.    hit = true;
  71.    _root.s.pohyb.laser1.sNum -= 1;
  72.    _root.s.pohyb.laser1.n4.num = 0;
  73.    _root.s.pohyb.laser1.n4._x = -500;
  74. }
  75. if(this.hitTest(_root.s.pohyb.laser1.n5._x,_root.s.pohyb.laser1.n5._y,true))
  76. {
  77.    hit = true;
  78.    _root.s.pohyb.laser1.sNum -= 1;
  79.    _root.s.pohyb.laser1.n5.num = 0;
  80.    _root.s.pohyb.laser1.n5._x = -500;
  81. }
  82. if(this.hitTest(_root.s.pohyb.laser3.n1._x,_root.s.pohyb.laser3.n1._y,true))
  83. {
  84.    hit = true;
  85.    _root.s.pohyb.laser3.sNum -= 1;
  86.    _root.s.pohyb.laser3.n1.num = 0;
  87.    _root.s.pohyb.laser3.n1._x = -500;
  88. }
  89. if(this.hitTest(_root.s.pohyb.laser3.n2._x,_root.s.pohyb.laser3.n2._y,true))
  90. {
  91.    hit = true;
  92.    _root.s.pohyb.laser3.sNum -= 1;
  93.    _root.s.pohyb.laser3.n2.num = 0;
  94.    _root.s.pohyb.laser3.n2._x = -500;
  95. }
  96. if(this.hitTest(_root.s.pohyb.laser3.n3._x,_root.s.pohyb.laser3.n3._y,true))
  97. {
  98.    hit = true;
  99.    _root.s.pohyb.laser3.sNum -= 1;
  100.    _root.s.pohyb.laser3.n3.num = 0;
  101.    _root.s.pohyb.laser3.n3._x = -500;
  102. }
  103. if(this.hitTest(_root.s.pohyb.laser3.n4._x,_root.s.pohyb.laser3.n4._y,true))
  104. {
  105.    hit = true;
  106.    _root.s.pohyb.laser3.sNum -= 1;
  107.    _root.s.pohyb.laser3.n4.num = 0;
  108.    _root.s.pohyb.laser3.n4._x = -500;
  109. }
  110. if(this.hitTest(_root.s.pohyb.laser3.n5._x,_root.s.pohyb.laser3.n5._y,true))
  111. {
  112.    hit = true;
  113.    _root.s.pohyb.laser3.sNum -= 1;
  114.    _root.s.pohyb.laser3.n5.num = 0;
  115.    _root.s.pohyb.laser3.n5._x = -500;
  116. }
  117. if(hit)
  118. {
  119.    gotoAndPlay(4);
  120. }
  121.